/**
 * @className ExceptionAdvice
 * @author liuxuelin
 * @Date 2021/1/15
 * @version v1.0
 */

package com.hidt.shop.exception;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

//@Component
//@ControllerAdvice
public class ExceptionAdvice {
//    @ExceptionHandler(RuntimeException.class)
    public   String  errorAll1() {
        return  "error";
    }
}
